﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PersonProperty
{
   public class PropertyChangedEventArgs:EventArgs
    {
        private string changedProperty;
        private object oldValue;
        private object newValue;

        public PropertyChangedEventArgs(string changedProperty, object oldValue, object newValue)
        {
            this.changedProperty = changedProperty;
            this.oldValue = oldValue;
            this.newValue = newValue;
        }

        public string ChangedProperty
        {
            get
            {
                return changedProperty;
            }
        }

        public object OldValue
        {
            get
            {
                return oldValue;
            }
        }

        public object NewValue
        {
            get
            {
                return newValue;
            }

        }

    }

}
